import request from '@/utils/request'

// 查询商城活动咨询列表
export function listMallNew(query) {
  return request({
    url: '/mall/mallNew/list',
    method: 'get',
    params: query
  })
}

// 查询商城活动咨询详细
export function getMallNew(id) {
  return request({
    url: '/mall/mallNew/' + id,
    method: 'get'
  })
}

// 新增商城活动咨询
export function addMallNew(data) {
  return request({
    url: '/mall/mallNew',
    method: 'post',
    data: data
  })
}

// 修改商城活动咨询
export function updateMallNew(data) {
  return request({
    url: '/mall/mallNew',
    method: 'put',
    data: data
  })
}

// 删除商城活动咨询
export function delMallNew(id) {
  return request({
    url: '/mall/mallNew/' + id,
    method: 'delete'
  })
}

// 导出商城活动咨询
export function exportMallNew(query) {
  return request({
    url: '/mall/mallNew/export',
    method: 'get',
    params: query
  })
}